Create a submission [eu-1]
curl --request POST \
--url https://api.documents.resistant.ai/v2/submission \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query_id": "<string>",
"pipeline_configuration": "FRAUD_ONLY",
"enable_decision": false,
"enable_submission_characteristics": false
}
'import requests
url = "https://api.documents.resistant.ai/v2/submission"
payload = {
"query_id": "<string>",
"pipeline_configuration": "FRAUD_ONLY",
"enable_decision": False,
"enable_submission_characteristics": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query_id: '<string>',
pipeline_configuration: 'FRAUD_ONLY',
enable_decision: false,
enable_submission_characteristics: false
})
};
fetch('https://api.documents.resistant.ai/v2/submission', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.documents.resistant.ai/v2/submission",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query_id' => '<string>',
'pipeline_configuration' => 'FRAUD_ONLY',
'enable_decision' => false,
'enable_submission_characteristics' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.documents.resistant.ai/v2/submission"
payload := strings.NewReader("{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.documents.resistant.ai/v2/submission")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.documents.resistant.ai/v2/submission")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}"
response = http.request(request)
puts response.read_body{
"upload_url": "<string>",
"submission_id": "<string>",
"submission_characteristics_upload_url": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}API Reference
Create a submission [eu-1]
Create a new submission for a document to be analyzed
POST
/
v2
/
submission
Create a submission [eu-1]
curl --request POST \
--url https://api.documents.resistant.ai/v2/submission \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query_id": "<string>",
"pipeline_configuration": "FRAUD_ONLY",
"enable_decision": false,
"enable_submission_characteristics": false
}
'import requests
url = "https://api.documents.resistant.ai/v2/submission"
payload = {
"query_id": "<string>",
"pipeline_configuration": "FRAUD_ONLY",
"enable_decision": False,
"enable_submission_characteristics": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query_id: '<string>',
pipeline_configuration: 'FRAUD_ONLY',
enable_decision: false,
enable_submission_characteristics: false
})
};
fetch('https://api.documents.resistant.ai/v2/submission', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.documents.resistant.ai/v2/submission",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query_id' => '<string>',
'pipeline_configuration' => 'FRAUD_ONLY',
'enable_decision' => false,
'enable_submission_characteristics' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.documents.resistant.ai/v2/submission"
payload := strings.NewReader("{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.documents.resistant.ai/v2/submission")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.documents.resistant.ai/v2/submission")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query_id\": \"<string>\",\n \"pipeline_configuration\": \"FRAUD_ONLY\",\n \"enable_decision\": false,\n \"enable_submission_characteristics\": false\n}"
response = http.request(request)
puts response.read_body{
"upload_url": "<string>",
"submission_id": "<string>",
"submission_characteristics_upload_url": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Body
application/json
Type of analysis pipeline to execute. FRAUD_ONLY runs fraud detection and also checks document quality and classifies the document. QUALITY_ONLY and CLASSIFICATION_ONLY should only be used for near-real-time quality or classification checks without fraud analysis.
Available options:
FRAUD_ONLY, CLASSIFICATION_ONLY, QUALITY_ONLY Response
Submission created successfully
Was this page helpful?